<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <span th:each="user,i:${userList}">
        <span th:text="${user.id}"></span><br/>
        <span th:text="${user.name}"></span>
        <span th:text="${user.age}"></span>
        <span th:text="${i.index}"></span>
    </span>
</body>
</html>